package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.dto.CollectionChipInfoPageDTO;
import com.sc.nft.dto.CollectionChipInfoRecordPageDTO;
import com.sc.nft.entity.ActivityAward;
import com.sc.nft.entity.CollectionChipInfo;
import com.sc.nft.entity.vo.CollectionChipCountVO;
import org.apache.ibatis.annotations.Param;
import com.sc.nft.entity.vo.CollectionChipInfoPageVO;
import com.sc.nft.entity.vo.CollectionChipInfoRecordPageVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface CollectionChipInfoMapper extends BaseMapper<CollectionChipInfo> {


    CollectionChipCountVO getChipInfoCount(@Param("collectionChipId") Long collectionChipId);
    /**
     * 批量创建
     * @param collectionChipInfoList
     * @return
     */
    void saveList(@Param("list") List<CollectionChipInfo> collectionChipInfoList);

    /**
     * 列表
     * @param pageDTO
     * @return
     */
    Page<CollectionChipInfoPageVO> pageList(Page page,@Param("DTO") CollectionChipInfoPageDTO pageDTO);

    /**
     * 识别记录
     * @param pageDTO
     * @return
     */
    IPage<CollectionChipInfoRecordPageVO> recordPage(Page page,@Param("DTO") CollectionChipInfoRecordPageDTO pageDTO);


    List<CollectionChipInfo> export(@Param("DTO")CollectionChipInfoPageDTO pageDTO);
}
